//
//  HelpClass.h
//  HondaPro_2
//
//  Created by Eric on 13-7-8.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MainMenuDataModel.h"

/*APP版本号控制*/
#define APP_VERSION_                            @"1.0"
#define APP_AND_SETUP_FILE_FOLDER_NAME_         @"GHAC_AfterSale"
/*end of APP版本号控制*/

//宏定义 消息 名称
#define RESULT_LIST_MSG_                @"resultListMsg"
#define INDICATION_LIST_MSG_            @"indicationListMsg"
#define REPAIR_ITEM_LIST_MSG_           @"repaiItemListMsg"
#define PART_LIST_MSG                   @"partListMsg"
#define OTHER_CHARGE_LIST_MSG           @"otherChargeListMsg"
#define ADD_BTN_MSG_                    @"addBtnMsg"
#define MODIFY_BTN_MSG_                 @"modifyBtnMsg"
#define SECOND_REPAIR_ITEM_LIST_MSG_    @"secondRepairItemListMsg"
#define SECOND_PART_LIST_MSG_           @"secondPartListMsg"
#define SECOND_OTHER_CHARGE_LIST_MSG_   @"secondOtherChargeListMsg"

#define MM_PART_DELETE_MSG_             @"iWantToDeletePart"

/*图片预览和录音查看消息*/

//车里查询里边的消息
#define MM_SCAN_PIC_MSG_                @"mmScanPicMsg"
#define MM_SCAN_RECORD_MSG_             @"mmScanRecordMsg"

//接待服务界面的消息
#define MM_SCAN_PIC_IN_SERVICE_HOME_MSG_        @"mmScanPicInServiceHomeMsg"
#define MM_SCAN_RECORD_IN_SERVICE_HOME_MSG_     @"mmScanRecordInServiceHomeMsg"

//定义消息，用于弹出代码选择的弹出框，此消息由控制器的子视图发出
#define MM_POP_UP_CODE_SELECTION_MSG_       @"mm_popUpCodeSelectionMsg"

/*图片预览和录音查看消息*/

//宏定义维修项目中的 键值 字符串
#define MM_FRT_LIST_KEY_STR_                    @"FRTList"
#define MM_FRT_KEY_STR_                         @"FRT"
#define MM_FRT_DESCRIPTION_KEY_STR_             @"FRTDiscription"
#define MM_REPAIR_ITEM_LIST_KEY_STR_            @"repairItemList"
#define MM_REPAIR_NUMBER_KEY_STR_               @"repairNumber"
#define MM_REPAIR_ID_KEY_STR_                   @"repairID"
#define MM_REPAIR_NAME_KEY_STR_                 @"repairName"
#define MM_STANDARD_WORK_HOUR_KEY_STR_          @"standardWorkHour"
#define MM_CUSTOM_WORK_HOUR_KEY_STR_            @"customWorkHour"
#define MM_CHECK_TIME_KEY_STR_                  @"checkWorkHour"
#define MM_REPAIR_COUNT_KEY_STR_                @"repairCount"
#define MM_REPAIR_WORK_CHARGE_KEY_STR_          @"repairWorkCharge"
#define MM_LON_CODE_KEY_STR_                    @"lONCode"
#define MM_IS_WARRANTY_KEY_STR_                 @"isWarranty"
#define MM_PARTS_SEARCH_LIST_KEY_STR_           @"results"
#define MM_PARTS_PART_CODE_KEY_STR_             @"partCode"
#define MM_PARTS_PART_CHINA_NAME_KEY_STR_       @"partChinaName"
#define MM_PARTS_PART_ENGLISH_NAME_KEY_STR_     @"partEnglishName"
#define MM_PARTS_CAR_TYPE_ID_KEY_STR_           @"carTypeId"
#define MM_PARTS_UNIT_PRICE_KEY_STR_            @"unitprice"
#define MM_PARTS_PART_STORAGE_QTY_KEY_STR_      @"partStorageQty"
#define MM_PARTS_AVAILABLE_QTY_KEY_STR_         @"availbleQty"

/*多客户分配中所有关键字字段的宏定义*/
#define MM_ALLOCATION_LIST_KEY_STR_                 @"allocationList"//多客户分配列表
#define MM_ALLOCATION_STATEMENT_NUMBER_KEY_STR_     @"statementNumber"//陈述号
#define MM_ALLOCATION_INDICATION_NUMBER_KEY_STR_    @"indicationnumber"//指示号
#define MM_ALLOCATION_INDICATION_CONTENT_KEY_STR_   @"indicationContent"//作业指示内容
#define MM_ALLOCATION_SERVICE_TYPE_KEY_STR_         @"serviceType"//服务类型
#define MM_ALLOCATION_ALLOCATION_STATUS_KEY_STR_    @"allocationStatus"//分配状态
#define MM_ALLOCATION_ALLOCATION_TYPE_KEY_STR_      @"allocationType"//分配类型
#define MM_ALLOCATION_REPAIR_MONEY_KEY_STR_         @"money"//维修金额

#define MM_CUSTOMER_LIST_KEY_STR_                   @"customerList"//客户列表
#define MM_CUSTOMER_NAME_KEY_STR_                   @"customerName"//客户姓名
#define MM_CUSTOMER_REPAIR_MONEY_KEY_STR_           @"repairMoney"//付款金额
#define MM_CUSTOMER_NUMBER_KEY_STR_                 @"customerId"//客户编号
#define MM_CUSTOMER_PROPORTION_KEY_STR_             @"proportion"//付款比例
#define MM_CUSTOMER_BALANCE_FLAG_KEY_STR_           @"balanceFlag"//余额担保

#define MM_ALLOCATED_       1//1 已分配
#define MM_NOT_ALLOCATED    0//0 未分配
#define MM_ALLOCATE_BY_RATE     0//0 按比例分配
#define MM_ALLOCATE_BY_MONEY    1//1 按金额分配
#define MM_BALANCE_OWNER        1//1 表示担保余额
#define MM_NOT_BALANCE_OWNER    0//0 表示不担保余额
/*end of 多客户分配中所有关键字字段的宏定义*/

/*多客户结算搜索客户关键字字段的宏定义*/
#define MM_CUSTOMER_SEARCH_CUSTOMER_LIST_KEY_STR_           @"customerList"
#define MM_CUSTOMER_SEARCH_CUSTOMER_ID_KEY_STR_             @"customerId"
#define MM_CUSTOMER_SEARCH_CUSTOMER_NAME_KEY_STR_           @"customerName"
#define MM_CUSTOMER_SEARCH_MARK_KEY_STR_                    @"mark"
#define MM_CUSTOMER_SEARCH_XIE_YI_KE_HU_KEY_STR_            0
#define MM_CUSTOMER_SEARCH_PU_TONG_KE_HU_KEY_STR_           1
/*end of 多客户结算搜索客户关键字字段的宏定义*/

/*外观检查关键字字段的宏定义*/
#define MM_OUT_CHECK_LIST_KEY_STR_                          @"outCheck"
#define MM_OUT_CHECK_OUT_CHECK_NUMBER_KEY_STR_              @"DEFECT_NO"
#define MM_OUT_CHECK_CHECK_ITEM_KEY_STR_                    @"DEFECT_TYPE"
#define MM_OUT_CHECK_DEFECT_DESCRIPTION_KEY_STR_            @"DEFECT_REMARK"
#define MM_OUT_CHECK_DEFECT_COUNT_KEY_STR_                  @"DEFECT_QUANTITY"
#define MM_OUT_CHECK_POINT_KEY_STR_                         @"POINT"
#define MM_OUT_CHECK_IMAGE_NAME_LIST_KEY_STR_               @"imageNameList"
#define MM_OUT_CHECK_IMAGE_NAME_KEY_STR_                    @"imageName"
/*end of 外观检查关键字字段的宏定义*/

/*用户陈述接口中所有字段的宏定义*/
#define MM_RESULTS_LIST_KEY_STR_                        @"results"
#define MM_INDICATION_LIST_KEY_STR_                     @"indicationList"
#define MM_REPAIR_ITEM_LIST_KEY_STR_                    @"repairItemList"
#define MM_PART_LIST_KEY_STR_                           @"partList"
#define MM_OTHER_CHARGE_LIST_KEY_STR_                   @"otherChargeList"

#define MM_RESULTS_STATE_NUMBER_KEY_STR_                @"statementNumber"
#define MM_RESULTS_STATE_CONTENT_KEY_STR_               @"stateContent"

#define MM_INDICATION_INDICATION_NUMBER_KEY_STR_        @"indicationNumber"
#define MM_INDICATION_INDICATION_CONTENT_KEY_STR_       @"indicationContent"
#define MM_INDICATION_SERVICE_TYPE_KEY_STR_             @"serviceType"
#define MM_INDICATION_REPAIR_TYPE_NAME_KEY_STR_         @"repairTypeName"

#define MM_REPAIR_ITEM_REPAIR_NUMBER_KEY_STR_           @"repairNumber"
#define MM_REPAIR_ITEM_REPAIR_ID_KEY_STR_               @"repairId"
#define MM_REPAIR_ITEM_REPAIR_NAME_KEY_STR_             @"repairName"
#define MM_REPAIR_ITEM_STANDARD_WORK_HOUR_KEY_STR_      @"standardWorkHour"
#define MM_REPAIR_ITEM_CUSTOM_WORK_HOUR_KEY_STR_        @"customWorkHour"
#define MM_REPAIR_ITEM_CHECK_TIME_KEY_STR_              @"checkWorkHour"
#define MM_REPAIR_ITEM_REPAIR_COUNT_KEY_STR_            @"repaircount"
#define MM_REPAIR_ITEM_REPAIR_WORK_CHARGE_KEY_STR_      @"repairWorkCharge"
#define MM_REPAIR_ITEM_LON_CODE_KEY_STR_                @"lONCode"
#define MM_REPAIR_ITEM_IS_WARRANTY_KEY_STR_             @"isWarranty"

#define MM_PART_PART_NUMBER_KEY_STR_                    @"partNumber"
#define MM_PART_PART_CODE_KEY_STR_                      @"partCode"
#define MM_PART_PART_NAME_KEY_STR_                      @"partName"
#define MM_PART_PART_COUNT_KEY_STR_                     @"partCount"
#define MM_PART_PRECONCERT_QTY_KEY_STR_                 @"preconcertQty"
#define MM_PART_OUT_QTY_KEY_STR_                        @"outQty"
#define MM_PART_BACK_QTY_KEY_STR_                       @"backQty"
#define MM_PART_CONCEL_QTY_KEY_STR_                     @"cancelQty"
#define MM_PART_OOS_QTY_KEY_STR_                        @"oosQty"
#define MM_PART_UNITY_PRICE_KEY_STR_                    @"unitprice"
#define MM_PART_PART_WORK_HOUR_KEY_STR_                 @"partWorkHour"
#define MM_PART_IS_WARRANTY_KEY_STR_                    @"isWarranty"

#define MM_OTHER_CHARGE_OTHER_CHARGE_NUMBER_KEY_STR_    @"otherChargenumber"
#define MM_OTHER_CHARGE_CHARGE_NAME_KEY_STR_            @"chargeName"
#define MM_OTHER_CHARGE_CHARGE_MONEY_KEY_STR_           @"chargeMoney"
#define MM_OTHER_CHARGE_CHARGE_TYPE_KEY_STR_            @"chargeType"
#define MM_OTHER_CHARGE_SUB_CONTRACT_CODE_KEY_STR_      @"subcontractCode"
#define MM_OTHER_CHARGE_IS_WARRANTY_KEY_STR_            @"isWarranty"
/*end of 用户陈述接口中所有字段的宏定义*/

/*车辆检查 关键字 字段宏定义*/
#define MM_CAR_CHECK_OIL_TABLE_KEY_STR_                                 @"oilTable"
#define MM_CAR_CHECK_CLEAN_CAR_KEY_STR_                                 @"cleanCar"
#define MM_CAR_CHECK_SEND_MESSAGE_KEY_STR_                              @"sendMessage"
#define MM_CAR_CHECK_IN_SHOP_KEY_STR_                                   @"inShop"
#define MM_CAR_CHECK_TAKE_OLD_PARTS_KEY_STR_                            @"takeOldParts"
#define MM_CAR_CHECK_REMARKS_KEY_STR_                                   @"remarks"
#define MM_CAR_CHECK_CARRY_GOODS_KEY_STR_                               @"carryGoods"
#define MM_CAR_CHECK_FUNCTION_CHECK_KEY_STR_                            @"functionCheck"
#define MM_CAR_CHECK_RECORD_LIST_KEY_STR_                               @"recordList"
#define MM_CAR_CHECK_IMG_LIST_KEY_STR_                                  @"imageNameList"
#define MM_CAR_CHECK_OUT_CHECK_KEY_STR_                                 @"outCheck"

#define MM_CAR_CHECK_CARRY_GOODS_GOODS_TYPE_KEY_STR_                    @"goodsType"
#define MM_CAR_CHECK_CARRY_GOODS_GOODS_DESCRIPTION_KEY_STR_             @"goodsDescription"
#define MM_CAR_CHECK_RECORD_LIST_RECORD_NAME_KEY_STR_                   @"recodeName"
#define MM_CAR_CHECK_IMAGE_LIST_IMG_NAME_KEY_STR_                       @"imageName"
#define MM_CAR_CHECK_FUNCTION_CHECK_FUNCTION_CHECK_NUMBER_KEY_STR_      @"functionCheckNumber"
#define MM_CAR_CHECK_FUNCTION_CHECK_FUNCTION_CHECK_NAME_KEY_STR_        @"functionCheckName"
#define MM_CAR_CHECK_FUNCTION_CHECK_CHECK_RESULT_KEY_STR_               @"checkResult"
#define MM_CAR_CHECK_OUT_CHECK_OUT_CHECK_NUMBER_KEY_STR_                @"outCheckNumber"
#define MM_CAR_CHECK_OUT_CHECK_CHECK_ITEM_KEY_STR_                      @"checkName"
#define MM_CAR_CHECK_OUT_CHECK_DEFECT_DESCRIPTION_KEY_STR_              @"defectDescription"
#define MM_CAR_CHECK_OUT_CHECK_DEFECT_COUNT_KEY_STR_                    @"defectCount"
#define MM_CAR_CHECK_OUT_CHECK_POINT_KEY_STR_                           @"point"

#define MM_CAR_CHECK_STATE_OK_KEY_STR_                                  @"1"
#define MM_CAR_CHECK_STATE_NOT_OK_KEY_STR_                              @"0"

#define MM_CAR_CHECK_FUNCTION_CHECK_RESULT_OK_KEY_STR_                  @"OK"
#define MM_CAR_CHECK_FUNCTION_CHECK_RESULT_NG_KEY_STR_                  @"NG"

#define MM_RED_PNG_     @"mm_red_btn.png"
#define MM_GRAY_PNG_    @"mm_gray_btn.png"
/*车辆检查 关键字 字段宏定义*/

/*录音列表的宏定义*/
#define MM_RECORD_LIST_KEY_STR_                                         @"recordList"
#define MM_RECORD_LIST_RECORD_NAME_KEY_STR_                             @"recordName"
/*录音列表的宏定义*/

/*三包信息查询 关键字 字段 宏定义*/
#define MM_WARING_INFORMATION_VIN_KEY_STR_                                                              @"vin"
#define MM_WARING_INFORMATION_SALE_DATE_KEY_STR_                                                        @"saleDate"
#define MM_WARING_INFORMATION_CUSTOMER_NAME_KEY_STR_                                                    @"customerName"
#define MM_WARING_INFORMATION_EXPIRATION_DATE_KEY_STR_                                                  @"expirationDate"
#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_KEY_STR_                                          @"waringInformation"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_KEY_STR_                                                 @"warrantyHistory"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_KEY_STR_                                            @"inspectionRecord"

#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_WARING_INFORMATION_KEY_STR_                       @"waringInformation"
#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_ADD_UP_WARRANTY_DAYS_KEY_STR_                     @"addupWarrantyDays"
#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_WARING_INFORMATION_PART_CODE_KEY_STR_             @"partCode"
#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_WARING_INFORMATION_PART_NAME_KEY_STR_             @"partName"
#define MM_WARING_INFORMATION_WARING_INFORMATION_LIST_WARING_INFORMATION_ADD_UP_REPAIR_QTY_KEY_STR_     @"addupRepairQty"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_REPAIR_NUMBER_KEY_STR_                                   @"repairNumber"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_PART_CODE_KEY_STR_                                       @"partCode"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_PART_NAME_KEY_STR_                                       @"partName"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_PART_CHANGE_QTY_KEY_STR_                                 @"partChengeQty"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_WARRANTY_DAYS_KEY_STR_                                   @"warrantyDays"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_FAULT_DESCRIPTION_KEY_STR_                               @"faultDescription"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_REPAIR_NAME_KEY_STR_                                     @"repairName"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_COMING_DATE_KEY_STR_                                     @"comingDate"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_DELIVERY_DATE_KEY_STR_                                   @"deliveryDate"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_COMING_MILEAGE_KEY_STR_                                  @"ComingMileage"
#define MM_WARING_INFORMATION_WARRANTY_HISTORY_REQUISITION_NUMBER_KEY_STR_                              @"requisitionNumber"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_CUSTOMER_DESCRIPTION_KEY_STR_                       @"customerDiscription"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_COMING_DATE_KEY_STR_                                @"comingDate"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_DELIVERY_DATE_KEY_STR_                              @"deliveryDate"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_COMING_MILEAGE_KEY_STR_                             @"ComingMileage"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_SHOP_ID_KEY_STR_                                    @"shopID"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_JOB_SHEET_ID_KEY_STR_                               @"jobSheetId"
#define MM_WARING_INFORMATION_CHECK_RECORDS_HISTORY_CHECK_RESULTS_KEY_STR_                              @"checkResults"
/*end of 三包信息查询 关键字 字段 宏定义*/

/*症状代码、故障代码、处理代码 的 关键字 宏定义*/
#define MM_SYMPTOM_CODE_DESCRIPTION_INDEX_LIST_KEY_STR_                                     @"symptomCodeDescriptionList"
#define MM_SYMPTOM_CODE_DESCRIPTION_ITEM_LIST_KEY_STR_                                      @"symptomCodeDescriptionItemList"
#define MM_SYMPTOM_CODE_LIST_KEY_STR_                                                       @"symptomCodeList"
#define MM_FAULT_CODE_DESCRIPTION_ITEM_LIST_KEKY_STR_                                       @"faultCodeDescriptionItemList"
#define MM_FAULT_CODE_LIST_KEY_STR_                                                         @"faultCodeList"
#define MM_ACTION_CODE_LIST_KEY_STR_                                                        @"actionCodeList"

#define MM_SYMPTOM_CODE_DESCRIPTION_INDEX_LIST_SYMPTOM_CODE_DESCRIPTION_NUMBER_KEY_STR_     @"symptomCodeDescriptionNumber"
#define MM_SYMPTOM_CODE_DESCRIPTION_INDEX_LIST_SYMPTOM_CODE_DESCRIPTION_KEY_STR_            @"symptomCodeDescription"
#define MM_SYMPTOM_CODE_DESCRIPTION_ITEM_SYMPTOM_CODE_DESCRIPTION_ITEM_NUMBER_KEY_STR_      @"symptomCodeDescriptionItemNumber"
#define MM_SYMPTOM_CODE_DESCRIPTION_ITEM_SYMPTOM_CODE_DESCRIPTION_ITEM_KEY_STR_             @"symptomCodeDescriptionItem"
#define MM_SYMPTOM_CODE_LIST_SYMPTOM_CODE_KEY_STR_                                          @"symptomCode"
#define MM_SYMPTOM_CODE_LIST_SYMPTOM_KEY_STR_                                               @"symptom"

#define MM_FAULT_CODE_DESCRIPTION_ITEM_LIST_FAULT_CODE_DESCRIPTION_ITEM_NUMBER_KEY_STR_     @"faultCodeDescriptionItemNumber"
#define MM_FAULT_CODE_DESCRIPTION_ITEM_LIST_FAULT_CODE_DESCRIPTION_ITEM_KEY_STR_            @"faultCodeDecriptionItem"
#define MM_FAULT_CODE_LIST_FAULT_CODE_NUMBER_KEY_STR_                                       @"faultCodeNumber"
#define MM_FAULT_CODE_LIST_FAULT_CODE_DESCRIPTION_KEY_STR_                                  @"faultCodeDescription"

#define MM_ACTION_CODE_LIST_ACTION_CODE_KEY_STR_                                            @"actionCode"
#define MM_ACTION_CODE_LIST_ACTION_CODE_DESCRIPTION_KEY_STR_                                @"actionCodeDescription"
/*end of 症状代码、故障代码、处理代码 的 关键字 宏定义*/

/*外观检查图片的标准尺寸*/
#define MM_OUT_CHECK_PIC_WIDTH_         416
#define MM_OUT_CHECK_PIC_HEIGHT_        223
/*end of外观检查图片的标准尺寸*/

/*零件删除标识*/

/*
 0可以删除
 1不可以删除
 2没查到数据
 */

#define MM_PART_CAN_DELETE_         @"0"
#define MM_PART_CAN_NOT_DELETE_     @"1"
#define MM_PART_NOT_FOUND_          @"2"
/*零件删除标识*/

/*图片预览宏定义*/

//图片预览权限
#define MM_PIC_CAN_UPDATE_          0
#define MM_PIC_CAN_NOT_UPDATE_      1

//按钮的tag
#define MM_PIC_EDIT_BTN_TAG_        100
#define MM_PIC_DELETE_BTN_TAG_      101
#define MM_PIC_CANCEL_BTN_TAG_      102

//图片当前模式－－－查看，编辑
#define MM_PIC_SCAN_MODE_           0
#define MM_PIC_EDIT_MODE_           1

//使能、禁能
#define MM_PIC_BTN_ENABLED_         1
#define MM_PIC_BTN_DISABLED_        0
/*end of 图片预览宏定义*/

/*录音播放与暂停的宏定义*/
#define MM_RECORD_PAUSE_MSG_        @"mm_recordPauseMsg"

#define MM_RECORD_PAUSE_PNG_        @"录音暂停.png"
#define MM_RECORD_PLAY_PNG_         @"录音播放.png"
/*end of 录音播放与暂停的宏定义*/

/*成组录入连续添加的消息注册*/
#define MM_TO_INVOKE_JOB_ITEM_GROUP_BTN_MSG_ @"mm_toInvokeJobItemGroupBtnMsg"
/*end of成组录入连续添加的消息注册*/

/*缺陷编辑退出弹出框的消息*/
#define MM_FAULTY_POINT_QUIT_POP_UP_VIEW_MSG_ @"mm_faultyPointQuitPopUpViewMsg"
/*end of 缺陷编辑退出弹出框的消息*/

/*"选择促进对象"推出弹出框的消息*/
#define MM_PROMOTE_LIST_QUIT_POP_UP_VIEW_MSG_   @"mm_promoteListQuitPopUpViewMsg"
/*end of "选择促进对象"推出弹出框的消息*/

/*CODE39图片的参数设置*/
/*
 default:
 fontSize=28,
 width=400,
 height=31
 */
#define MM_CODE_39_FONT_SIZE_   28
#define MM_CODE_39_WIDTH_      400
#define MM_CODE_39_HEIGHT_      31
/*end of CODE39图片的参数设置*/

@interface HelpClass : NSObject

//类方法：根据RGB颜色的十六进制组合返回UIColor
+ (UIColor *)colorWithHexString: (NSString *)stringToConvert;

//根据json文件的路径解析出json数据
+(id)jsonParseByJsonFileStr:(NSString *)jsonFileStr;

//根据json文件名和类型解析出数据，返回数据
+(id)returnTheDataByJsonFileAndJustForTestWithFileName:(NSString *)fileName andType:(NSString *)fileType;

//从Config.plist中读取数据
+(NSMutableDictionary *)getDicDataFromConfigFileFromDocumnetFolder;

/*webService请求数据*/
//请求网络数据
+(void)getWebServiceDataByString:(NSString *)strMsg andArrObject:(NSMutableArray *)arrWebData;
/*end of webService请求数据*/

//设置状态button状态的方法,YES:选中，NO:未选中
+(void)setUpTheStateButtonState:(BOOL)state withBtn:(UIButton *)button;
+(void)setUpTheStateButtonEnableState:(BOOL)enable withBtn:(UIButton *)button;

//判断一个字符串是否是合法的电话号码
+(BOOL)isTelNumber:(NSString *)telNumberStr;

//判断一个字符串是否是纯数字的
+(BOOL)isPureInt:(NSString *)telNumberStr;

//根据作业指示中服务类型的Id 获取服务类型的汉字字符串
+(NSString *)getServiceTypeNameById:(NSString *)serviceTypeId;
//根据作业指示中修理种类的Id 获取修理种类的汉字字符串
+(NSString *)getRepairTypeNameById:(NSString *)repairTypeId;

//根据name在id与name的列表中获取到ID
+(NSString *)getIdByNameInList:(NSArray *)arrIdAndNameList withName:(NSString *)name byNameKey:(NSString *)nameKey byIdKey:(NSString *)idKey;
//根据id找到该id在列表中的索引
+(NSInteger)getIndexInList:(NSArray *)arrIdAndNameList withId:(NSString *)idXingCan byNameKey:(NSString *)nameKey byIdKey:(NSString *)idKey;
//根据name找到该name在列表中的索引
+(NSInteger)getIndexInList:(NSArray *)arrIdAndNameList withName:(NSString *)name byNameKey:(NSString *)nameKey;
//根据id在列表中的索引获取name
+(NSString *)getNameByIndexInList:(NSArray *)arrIdAndNameList withIndex:(NSInteger)index byNameKey:(NSString *)nameKey byIdKey:(NSString *)idKey;
//根据id在列表中的索引获取Id
+(NSString *)getIdByIndexInList:(NSArray *)arrIdAndNameList withIndex:(NSInteger)index byNameKey:(NSString *)nameKey byIdKey:(NSString *)idKey;
//根据id获取name
+(NSString *)getNameByIdInList:(NSArray *)arrIdAndNameList withId:(NSString *)idXingCan byNameKey:(NSString *)nameKey byIdKey:(NSString *)idKey;

//将版本号存入本地
+(void)saveVersion:(NSString *)versionFormPara;

//根据Nsstring的改变情况,确定当前的输入框值
+(NSString *)currStrByStr:(NSString *)strOriFormPara andModifyStr:(NSString *)strModifyFormPara withRange:(NSRange)rangeFormPara;

@end
